package cn.edu.scau.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.scau.dao.BookingMapper;
import cn.edu.scau.entity.Booking;
import cn.edu.scau.service.BookingService;
@Service
public class BookingServiceImpl implements BookingService{
	@Autowired
	private BookingMapper bookingMapper;
	@Override
	public Booking selectByPrimaryKey(Integer id) {
		return bookingMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean insert(Booking record) {
		return 1==bookingMapper.insert(record);
	}

}
